package com.think.teaching.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.think.teaching.model.Course;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author think
 * @since 2020-08-12
 */
@Service
public interface CourseService extends IService<Course>  {

	Course AddCourse(Course course) throws Exception;

	Course UpdateCourse(Course course)  throws Exception;

	Course GetCourse(Integer id,Integer tempFlag,Integer state);
	
	List<Course> SearchCourseWithKey(String key,Boolean withoutBan);

	Course SetCourseState(Integer id, Integer state);
}
